home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / comm / irc / epic4.lha / doc / nicknames < prev    next >
Text File  |  2002-09-18  |  2KB  |  40 lines

  1. Much of the nickname handling in ircII is ad-hoc and prone to confusion.
  2. Since many people have asked me for a while to fix it, i am writing down
  3. here the plans i have to fix how nicknames are handled.
  4.  
  5. The current global variable "nickname" will be retained as a global
  6. default.  All new server refnums will use this global default as their
  7. initial nickname.
  8.  
  9. Each server will maintain three nicknames:
  10.  
  11.     d_nickname -- This is the "default" for this server.  This is 
  12.         set ONCE, when then the server is first created.
  13.         Whenever this server's connection is re-established,
  14.         this is the nickname that will be used.  It is reset
  15.         any time the user uses the /NICK command.  It is also
  16.         reset any time the user's nickname has been established.
  17.         This member is always set to something.
  18.  
  19.     s_nickname -- This is the "pending" nickname for the server.
  20.         This is set when the user attempts to change nickname
  21.         through the /NICK command, or when a nick collision
  22.         occurs.  This member is mutually exclusive with the
  23.         "nickname" member.  Whenever the user recieves a
  24.         "Invalid Nickname" or "Nickname is in use", if this
  25.         member is set, it will be used as the basis for any
  26.         fudging.  If this member is unset, "nickname" will
  27.         be used as a starting value.  If this member is set,
  28.         then a NICK command is still pending.
  29.  
  30.     nickname -- This is the "official" nickname for the server.
  31.         This is set when we either get a NICK reply back from
  32.         the server for ourselves, or when we recieve the 004
  33.         numeric.  This member must *always* remain correct,
  34.         so that we can determine when the NICK reply comes
  35.         back.  Otherwise, once the current nick is lost, all
  36.         hope is gone.  If this member is set, and s_nickname
  37.         is also set, then that means a NICK command is pending,
  38.         and we are waiting for the reply.
  39.  
  40.